import http from "../request";
//商品模块接口封装
export default {
	//获取轮播图
	queryAppInfoAction() {
		return http.get("/appFile/queryAppInfo")
	},
	//查询用户登录授权的菜单(首页)
	queryUserPermissionListAction(type) {
		return http.get("/permission/queryUserPermissionList", {
			type: type
		}, true)
	},
	//查询角色授权的菜单列表(访客)
	queryRolePermissionListAction(type) {
		return http.get("/permission/queryRolePermissionList", {
			type: type
		})
	},
	//查询应用权限所有列表(用户中心)
	queryAppPermissionListAction(type) {
		return http.get("/permission/queryAppPermissionList", {}, true)
	},
	//查询菜品分组列表
	queryGroupDishAction(params) {
		return http.get("/dish/queryGroupDish", params, true)
	},
	//查询商品品分组列表
	queryProGroupListAction(params) {
		return http.get("/group/queryProGroupList", params, true)
	},
	//查询商品套餐详情
	queryDishSetAction(params) {
		return http.get("/dish/queryDishSet", params)
	},
	//查询商品自选详情
	queryDishSingleAction(params) {
		return http.get("/dish/queryDishSingle", params)
	}
}